package com.cskaoyan.market.db.admin.bo;

import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;

import lombok.Data;

/**
 * @author 小焦
 * @since 2023/03/20 17:04
 */
@Data
public class BaseMarketStorageBo {

    /**
     * id : 5 key : 37c418e4-6b90-4214-a46b-8acf7f154a90-3.jpg name : 4.jpg type : image/jpeg size : 94094 url :
     * http://localhost:8083/img/2023-03-19//7/f/e/7/4/c/0/6/37c418e4-6b90-4214-a46b-8acf7f154a90-3.jpg addTime :
     * 2023-03-19 22:08:39 updateTime : 2023-03-19 22:08:39 deleted : false
     */

    private Integer id;
    private String key;
    private String name;
    private String type;
    private Integer size;
    private String url;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime addTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime updateTime;
    private Boolean deleted;

}
